package com.fanghuaman.user.service;

import com.fanghuaman.model.common.vo.ResponseResult;
import com.fanghuaman.model.user.dto.LoginDto;
import com.fanghuaman.model.user.dto.RegisterDto;
import com.fanghuaman.model.user.dto.UserEditDto;
import com.fanghuaman.model.user.pojo.User;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author smh
 * @since 2024-11-24
 */
public interface UserService extends IService<User> {

    /**
     * 登录
     * @param loginDto
     * @return
     */
    ResponseResult login(LoginDto loginDto);

    /**
     * 注册
     *
     * @param registerDto
     * @return
     */
    ResponseResult register(RegisterDto registerDto);

    /**
     * 忘记密码
     *
     * @param registerDto
     * @return
     */
    ResponseResult forgetPassword(RegisterDto registerDto);

    /**
     * 修改用户信息
     *
     * @param userEditDto
     * @return
     */
    ResponseResult edit(UserEditDto userEditDto);
}
